import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
   redirect:"/home",
   },
  {
  path:"/home",
  component:Home,
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path: '/fenlei',
    name: 'Fenlei',
    component: ()=>import("../views/Fenlei.vue")
  },
  {
    path: '/gouwu',
    name: 'Gouwu',
    component: ()=>import("../views/Gouwu.vue")
  },
  {
    path: '/wode',
    name: 'Wode',
    component: ()=>import("../views/Wode.vue")
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
